<div class="content1">
  <div id="warning"></div>
  <form method="post" action="{url route='seller_order/shipped' order_id=$order.order_id}" target="iframe" id="seller_order_shipped">
    <div class="mb10">
    	<h1>{$lang.input_express_no}</h1>
    	<p>{$lang.order_sn}&nbsp;&nbsp;&nbsp;&nbsp;:<span class="ml20">{$order.order_sn}</span></p>
    </div>
    
    <!--{if $express_company}-->
    <dl>
      <dt>{$lang.express_company}{$lang.colon}</dt>
      <dd>
        <select name="express_comkey">
          <option value="">{$lang.select_express_company}</option>
          <!--{foreach from=$express_company item=company key=key}-->
          <option value="{$key}" {if $key eq $order.express_comkey} selected="selected"{/if}>{$company}</option>
          <!--{/foreach}-->
        </select>
      </dd>
    </dl>
    <!--{/if}-->
    <dl>
      <dt>{$lang.express_no}{$lang.colon}</dt>
      <dd>
        <input type="text" class="text" name="express_no" id="express_no_input" value="{$order.express_no}" class="search250" />
      </dd>
    </dl>
    <dl>
      <dt>{$lang.operate_reason}:</dt>
      <dd>
        <textarea id="remark_input" class="text" name="remark"></textarea>
      </dd>
    </dl>
    <div class="btn">
    	<input type="button" id="cancel_button" class="btn2" value="{$lang.cancel}" />
      	<input type="submit" id="confirm_button" class="btn1" value="{$lang.confirm}" />
    </div>
  </form>
</div>
<script type="text/javascript">
$(function(){
    $('#cancel_button').click(function(){
        DialogManager.close('seller_order_shipped');
    });
    $('#seller_order_shipped').validate({ 
		errorLabelContainer: $('#warning'),
    	invalidHandler: function(form, validator) {
           $('#warning').show();
    	},
     	rules : {
            express_no : {
                required   : true
            }
        },
        messages : {
            express_no  : {
                required   : '{$lang.express_no_empty}'
            }
        }
    });
});
</script>